public class ArrayChange {
    /**
     * 数组反转
     *author:王锦林
     * time:2020-6-13
     * @param args
     */
    public static void main(String[] args) {
        int[] arr={1,2,3,4,5,6,7,8,9,10};
        change(arr);
        for (int i=0;i<arr.length;i++){
            System.out.print(arr[i]+" ");
        }
    }
    public static void change(int[] arr){
       for (int left=0,reight=arr.length-1;left<reight;left++,reight--){
           int temp=arr[left];
           arr[left]=arr[reight];
           arr[reight]=temp;
       }
    }
}
